'''
Created on 01/05/2012

@author: Wilson
'''

from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.engine import create_engine
from sqlalchemy.orm.session import sessionmaker

#TODO: Parametrizar, colocando no conf.ini
engine = create_engine(
                "postgresql://postgres:postgres@localhost/almoxarifado", 
                isolation_level="READ UNCOMMITTED"
            )

Base = declarative_base(engine)
Session = sessionmaker(bind=engine)
